package service

import (
	"gin/types"
	"github.com/gin-gonic/gin"
)

type ProjectMember struct {
}

func (c *ProjectMember) Select(ctx *gin.Context, projectId, roleId int64) (res types.ProjectMemberSelectRes, err error) {
	var req = types.ProjectMemberSelectReq{}
	req.Param.Page = []int{1, 500}
	req.Param.Filter.ProjectId = projectId
	req.Param.Filter.RoleId = roleId
	var headers = map[string]string{"x-userinfo": GetStringFromContext(ctx, "x-userinfo")}
	err = tr.Do("teamones-saas", "project_member/select", req, headers, &res)
	return
}
